\hypertarget{a00064}{}\section{E\+:/knet-\/git/knet/knet/framework\+\_\+raiser.h 文件参考}
\label{a00064}\index{E\+:/knet-\/git/knet/knet/framework\+\_\+raiser.\+h@{E\+:/knet-\/git/knet/knet/framework\+\_\+raiser.\+h}}
{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\\*
\subsection*{函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00056_af10637001508cbbf3a84f95c71318532_af10637001508cbbf3a84f95c71318532}{kframework\+\_\+raiser\+\_\+t} $\ast$ \hyperlink{a00064_a2b6bd6bd9b9c60ab24eab0c0700bc855_a2b6bd6bd9b9c60ab24eab0c0700bc855}{knet\+\_\+framework\+\_\+raiser\+\_\+create} (\hyperlink{a00056_a3195a3be35782fc1efb920c811be111d_a3195a3be35782fc1efb920c811be111d}{kframework\+\_\+t} $\ast$f, \hyperlink{a00056_a97fc76209a58362019f1ded9169e397f_a97fc76209a58362019f1ded9169e397f}{kloop\+\_\+t} $\ast$loop)
\begin{DoxyCompactList}\small\item\em 建立网络连接发起者(监听器/连接器) \end{DoxyCompactList}\item 
void \hyperlink{a00064_abafbab78ce889f71a99d7200977507a2_abafbab78ce889f71a99d7200977507a2}{knet\+\_\+framework\+\_\+raiser\+\_\+destroy} (\hyperlink{a00056_af10637001508cbbf3a84f95c71318532_af10637001508cbbf3a84f95c71318532}{kframework\+\_\+raiser\+\_\+t} $\ast$raiser)
\begin{DoxyCompactList}\small\item\em 销毁网络连接发起者 \end{DoxyCompactList}\item 
int \hyperlink{a00064_ad6b3a3a742cf17b521c85962b693efc5_ad6b3a3a742cf17b521c85962b693efc5}{knet\+\_\+framework\+\_\+raiser\+\_\+start} (\hyperlink{a00056_af10637001508cbbf3a84f95c71318532_af10637001508cbbf3a84f95c71318532}{kframework\+\_\+raiser\+\_\+t} $\ast$raiser)
\begin{DoxyCompactList}\small\item\em 启动网络连接发起者 \end{DoxyCompactList}\item 
void \hyperlink{a00064_a6e9cfd9d165129b0099e929885aa78e5_a6e9cfd9d165129b0099e929885aa78e5}{knet\+\_\+framework\+\_\+raiser\+\_\+stop} (\hyperlink{a00056_af10637001508cbbf3a84f95c71318532_af10637001508cbbf3a84f95c71318532}{kframework\+\_\+raiser\+\_\+t} $\ast$raiser)
\begin{DoxyCompactList}\small\item\em 关闭网络连接发起者 \end{DoxyCompactList}\item 
void \hyperlink{a00064_afcada6a8c7bb6d0d91c55df37352f5fb_afcada6a8c7bb6d0d91c55df37352f5fb}{knet\+\_\+framework\+\_\+raiser\+\_\+wait\+\_\+for\+\_\+stop} (\hyperlink{a00056_af10637001508cbbf3a84f95c71318532_af10637001508cbbf3a84f95c71318532}{kframework\+\_\+raiser\+\_\+t} $\ast$raiser)
\begin{DoxyCompactList}\small\item\em 等待网络连接发起者 \end{DoxyCompactList}\item 
int \hyperlink{a00064_a1fa517b4b3e577a30f12f5b77dfaa9a3_a1fa517b4b3e577a30f12f5b77dfaa9a3}{knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+acceptor} (\hyperlink{a00056_af10637001508cbbf3a84f95c71318532_af10637001508cbbf3a84f95c71318532}{kframework\+\_\+raiser\+\_\+t} $\ast$raiser, \hyperlink{a00056_a39c993eb450173e4fde04498d757f9b6_a39c993eb450173e4fde04498d757f9b6}{kframework\+\_\+acceptor\+\_\+config\+\_\+t} $\ast$c)
\begin{DoxyCompactList}\small\item\em 启动一个新的监听器 \end{DoxyCompactList}\item 
int \hyperlink{a00064_af58dbe8c5764d42ecb712d4a93391d11_af58dbe8c5764d42ecb712d4a93391d11}{knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+connector} (\hyperlink{a00056_af10637001508cbbf3a84f95c71318532_af10637001508cbbf3a84f95c71318532}{kframework\+\_\+raiser\+\_\+t} $\ast$raiser, \hyperlink{a00056_a44d3033eba5a4fd784a741700a7a2521_a44d3033eba5a4fd784a741700a7a2521}{kframework\+\_\+connector\+\_\+config\+\_\+t} $\ast$c)
\begin{DoxyCompactList}\small\item\em 启动一个新的连接器 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{函数说明}
\hypertarget{a00064_a2b6bd6bd9b9c60ab24eab0c0700bc855_a2b6bd6bd9b9c60ab24eab0c0700bc855}{}\index{framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}!knet\+\_\+framework\+\_\+raiser\+\_\+create@{knet\+\_\+framework\+\_\+raiser\+\_\+create}}
\index{knet\+\_\+framework\+\_\+raiser\+\_\+create@{knet\+\_\+framework\+\_\+raiser\+\_\+create}!framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}}
\subsubsection[{knet\+\_\+framework\+\_\+raiser\+\_\+create}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kframework\+\_\+raiser\+\_\+t}$\ast$ knet\+\_\+framework\+\_\+raiser\+\_\+create (
\begin{DoxyParamCaption}
\item[{{\bf kframework\+\_\+t} $\ast$}]{f, }
\item[{{\bf kloop\+\_\+t} $\ast$}]{loop}
\end{DoxyParamCaption}
)}\label{a00064_a2b6bd6bd9b9c60ab24eab0c0700bc855_a2b6bd6bd9b9c60ab24eab0c0700bc855}


建立网络连接发起者(监听器/连接器) 


\begin{DoxyParams}{参数}
{\em f} & kframework\+\_\+t实例 \\
\hline
{\em loop} & kloop\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
kframework\+\_\+raiser\+\_\+t实例 
\end{DoxyReturn}
\hypertarget{a00064_abafbab78ce889f71a99d7200977507a2_abafbab78ce889f71a99d7200977507a2}{}\index{framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}!knet\+\_\+framework\+\_\+raiser\+\_\+destroy@{knet\+\_\+framework\+\_\+raiser\+\_\+destroy}}
\index{knet\+\_\+framework\+\_\+raiser\+\_\+destroy@{knet\+\_\+framework\+\_\+raiser\+\_\+destroy}!framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}}
\subsubsection[{knet\+\_\+framework\+\_\+raiser\+\_\+destroy}]{\setlength{\rightskip}{0pt plus 5cm}void knet\+\_\+framework\+\_\+raiser\+\_\+destroy (
\begin{DoxyParamCaption}
\item[{{\bf kframework\+\_\+raiser\+\_\+t} $\ast$}]{raiser}
\end{DoxyParamCaption}
)}\label{a00064_abafbab78ce889f71a99d7200977507a2_abafbab78ce889f71a99d7200977507a2}


销毁网络连接发起者 


\begin{DoxyParams}{参数}
{\em raiser} & kframework\+\_\+raiser\+\_\+t实例 \\
\hline
\end{DoxyParams}
\hypertarget{a00064_a1fa517b4b3e577a30f12f5b77dfaa9a3_a1fa517b4b3e577a30f12f5b77dfaa9a3}{}\index{framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}!knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+acceptor@{knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+acceptor}}
\index{knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+acceptor@{knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+acceptor}!framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}}
\subsubsection[{knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+acceptor}]{\setlength{\rightskip}{0pt plus 5cm}int knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+acceptor (
\begin{DoxyParamCaption}
\item[{{\bf kframework\+\_\+raiser\+\_\+t} $\ast$}]{raiser, }
\item[{{\bf kframework\+\_\+acceptor\+\_\+config\+\_\+t} $\ast$}]{c}
\end{DoxyParamCaption}
)}\label{a00064_a1fa517b4b3e577a30f12f5b77dfaa9a3_a1fa517b4b3e577a30f12f5b77dfaa9a3}


启动一个新的监听器 


\begin{DoxyParams}{参数}
{\em raiser} & kframework\+\_\+raiser\+\_\+t实例 \\
\hline
{\em c} & kframework\+\_\+acceptor\+\_\+config\+\_\+t实例 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00064_af58dbe8c5764d42ecb712d4a93391d11_af58dbe8c5764d42ecb712d4a93391d11}{}\index{framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}!knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+connector@{knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+connector}}
\index{knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+connector@{knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+connector}!framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}}
\subsubsection[{knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+connector}]{\setlength{\rightskip}{0pt plus 5cm}int knet\+\_\+framework\+\_\+raiser\+\_\+new\+\_\+connector (
\begin{DoxyParamCaption}
\item[{{\bf kframework\+\_\+raiser\+\_\+t} $\ast$}]{raiser, }
\item[{{\bf kframework\+\_\+connector\+\_\+config\+\_\+t} $\ast$}]{c}
\end{DoxyParamCaption}
)}\label{a00064_af58dbe8c5764d42ecb712d4a93391d11_af58dbe8c5764d42ecb712d4a93391d11}


启动一个新的连接器 


\begin{DoxyParams}{参数}
{\em raiser} & kframework\+\_\+raiser\+\_\+t实例 \\
\hline
{\em c} & kframework\+\_\+connector\+\_\+config\+\_\+t实例 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00064_ad6b3a3a742cf17b521c85962b693efc5_ad6b3a3a742cf17b521c85962b693efc5}{}\index{framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}!knet\+\_\+framework\+\_\+raiser\+\_\+start@{knet\+\_\+framework\+\_\+raiser\+\_\+start}}
\index{knet\+\_\+framework\+\_\+raiser\+\_\+start@{knet\+\_\+framework\+\_\+raiser\+\_\+start}!framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}}
\subsubsection[{knet\+\_\+framework\+\_\+raiser\+\_\+start}]{\setlength{\rightskip}{0pt plus 5cm}int knet\+\_\+framework\+\_\+raiser\+\_\+start (
\begin{DoxyParamCaption}
\item[{{\bf kframework\+\_\+raiser\+\_\+t} $\ast$}]{raiser}
\end{DoxyParamCaption}
)}\label{a00064_ad6b3a3a742cf17b521c85962b693efc5_ad6b3a3a742cf17b521c85962b693efc5}


启动网络连接发起者 


\begin{DoxyParams}{参数}
{\em raiser} & kframework\+\_\+raiser\+\_\+t实例 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00064_a6e9cfd9d165129b0099e929885aa78e5_a6e9cfd9d165129b0099e929885aa78e5}{}\index{framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}!knet\+\_\+framework\+\_\+raiser\+\_\+stop@{knet\+\_\+framework\+\_\+raiser\+\_\+stop}}
\index{knet\+\_\+framework\+\_\+raiser\+\_\+stop@{knet\+\_\+framework\+\_\+raiser\+\_\+stop}!framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}}
\subsubsection[{knet\+\_\+framework\+\_\+raiser\+\_\+stop}]{\setlength{\rightskip}{0pt plus 5cm}void knet\+\_\+framework\+\_\+raiser\+\_\+stop (
\begin{DoxyParamCaption}
\item[{{\bf kframework\+\_\+raiser\+\_\+t} $\ast$}]{raiser}
\end{DoxyParamCaption}
)}\label{a00064_a6e9cfd9d165129b0099e929885aa78e5_a6e9cfd9d165129b0099e929885aa78e5}


关闭网络连接发起者 


\begin{DoxyParams}{参数}
{\em raiser} & kframework\+\_\+raiser\+\_\+t实例 \\
\hline
\end{DoxyParams}
\hypertarget{a00064_afcada6a8c7bb6d0d91c55df37352f5fb_afcada6a8c7bb6d0d91c55df37352f5fb}{}\index{framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}!knet\+\_\+framework\+\_\+raiser\+\_\+wait\+\_\+for\+\_\+stop@{knet\+\_\+framework\+\_\+raiser\+\_\+wait\+\_\+for\+\_\+stop}}
\index{knet\+\_\+framework\+\_\+raiser\+\_\+wait\+\_\+for\+\_\+stop@{knet\+\_\+framework\+\_\+raiser\+\_\+wait\+\_\+for\+\_\+stop}!framework\+\_\+raiser.\+h@{framework\+\_\+raiser.\+h}}
\subsubsection[{knet\+\_\+framework\+\_\+raiser\+\_\+wait\+\_\+for\+\_\+stop}]{\setlength{\rightskip}{0pt plus 5cm}void knet\+\_\+framework\+\_\+raiser\+\_\+wait\+\_\+for\+\_\+stop (
\begin{DoxyParamCaption}
\item[{{\bf kframework\+\_\+raiser\+\_\+t} $\ast$}]{raiser}
\end{DoxyParamCaption}
)}\label{a00064_afcada6a8c7bb6d0d91c55df37352f5fb_afcada6a8c7bb6d0d91c55df37352f5fb}


等待网络连接发起者 


\begin{DoxyParams}{参数}
{\em raiser} & kframework\+\_\+raiser\+\_\+t实例 \\
\hline
\end{DoxyParams}
